<%--
*
*çR’S¨é 用户表BASIC_USER的edit文件
*
* @author tch 
*
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="f" uri="/flowpage-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title><s:property value="operate"/>用户</title>
	<%@include file="/share/header.jsp"%>
	<s:head/>
	<f:header theme="${sessionScope.skinCon.pageSkin}"/>	
  </head>
  <body>
  <s:actionerror/>
	    <s:form  action="submit_dsnc" namespace="/main" validate="true" focusElement="domain.name">
		 	<s:hidden name="domain.organization.id" required="true" label="所属组织"/>
		 	<s:textfield name="domain.name" label="姓名" multipleheight="1" multiplewidth="1" required="true" readonly="%{readonly}" disabled="%{disabled}" dataType="LimitB"  max="50" maxlength="50"/>
		 	<s:if test="readonly||modifySelf">
		    	<s:textfield name="domain.organization.name" label="所属组织" multipleheight="1" multiplewidth="1" required="true" readonly="true" disabled="%{disabled}"  dataType="LimitB"    max="100"  maxlength="100"/>		 	
		 	</s:if>
		 	<s:else>
		    	<s:textfield name="domain.organization.name" label="所属组织" multipleheight="1" multiplewidth="1" required="true" readonly="true" dataType="LimitB"    max="100"  maxlength="100" onclick="onDoSelectTree({title:'所属组织',type:'Organization',rootIds:'',returnIdName:'domain.organization.id',returnTextName:'domain.organization.name',require:true});" cssClass="SelectTree"/>		 	
		 	</s:else>		    
		    <s:textfield name="domain.account" label="用户帐号" multipleheight="1" multiplewidth="1" required="true" readonly="%{readonly}" disabled="%{disabled}" dataType="LimitB"  max="50"  maxlength="50"/>
		    <s:password name="domain.originalPassword" label="用户密码" showPassword="true" multipleheight="1" multiplewidth="1" required="true" readonly="%{readonly}" disabled="%{disabled}" dataType="SafeString" min="6"  maxlength="50" autocomplete="off"/>
	      <s:if test="getConfigValue('enable_multiple_role')==\"1\"">
			<s:checkboxlist name="rolesChecked" label="用户角色"  readonly="%{readonly||modifySelf}" disabled="%{readonly||modifySelf}" required="true" emptyOption="true" columnBreak="4" dataType="Group" list="roleList" listKey="id" listValue="name" multiplewidth="2" min="1"/>	      
	      </s:if>
	      <s:else>
			<s:radio name="roleChecked" label="用户角色"  readonly="%{readonly||modifySelf}" disabled="%{readonly||modifySelf}" required="true" emptyOption="true" columnBreak="4" list="roleList" listKey="id" listValue="name" multiplewidth="2"/>	      	      	
	      </s:else>			    
		    <s:radio label="性别" name="domain.sex" noborder="true" readonly="%{readonly}" disabled="%{disabled}" required="true" list="getCodeItemList('sex')" listKey="value" listValue="name" />
		    <s:textfield name="domain.birthday" label="出生日期" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Date">
			<s:param name="value">
		    	    <s:date name="domain.birthday" format="yyyy-MM-dd"/>
		    	</s:param>
		    </s:textfield>
		    <s:textfield name="domain.idcard" label="身份证" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="IdCard"  maxlength="50"/>
		    <s:textfield name="domain.workphone" label="工作电话" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Phone"  maxlength="50"/>
		    <s:textfield name="domain.mobilephone" label="手机" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Mobile"  maxlength="50"/>
		    <s:textfield name="domain.email" label="邮箱地址" multipleheight="1" multiplewidth="1" required="false" readonly="%{readonly}" disabled="%{disabled}" dataType="Email"  maxlength="50"/>
		    <s:if test="!modifySelf">
		    	<s:textfield name="domain.sequence" label="顺序" multipleheight="1" multiplewidth="1" required="true" readonly="%{readonly}" disabled="%{disabled}" dataType="Integer"  maxlength="4"/>
		    	<s:radio label="是否启用" name="domain.state" noborder="true" readonly="%{readonly}" disabled="%{disabled}" required="true" list="getCodeItemList('yes_no')" listKey="value" listValue="name" />
		    </s:if>
		    <s:textarea name="domain.remark" label="备注"  required="false" multipleheight="2" multiplewidth="2" readonly="%{readonly}" disabled="%{disabled}" dataType="LimitB"   max="2000"   maxlength="2000"/>
		    
		    
			<div class="compositionalInput_wrapperDIV"  align="right">
			<table class="compositionalInput_contextTable" style="height: 27px;width: 368px;">	
			<tr>
			<td class="compositionalInput_labelTD">
			<font style="font-size:12px;">验证码</font><span class="FlowPageRequired">*</span>：</td>
			<td width="50">
			</td>
			<td class="compositionalInput_contextTD 		">
			     <s:textfield id="textfield" id="verification" name="verification"  label="验证码"  value="" required="true" cssClass="verificateTextInput" length="4" theme="simple" tabindex="3" showTip="false"/>
    				 <img  align="absmiddle" src="<s:url action="verificationImage" namespace="/portal"/>" width="60" height="20" onclick="this.src='<s:url action="verificationImage" namespace="/main"/>?d='+new Date().getTime();" alt="请点击更换验证码图片">				     
			</td>
			</tr>
			</table>
			</div>
	    </s:form>
  </body>
</html>
